home *** CD-ROM | disk | FTP | other *** search
- tell application "MenuScripter"
- copy selection of window 1 to usersel
- copy style of usersel to selstyle
- if on styles of selstyle contains extended then
- set x to {class:text style info, on styles:{}, off styles:{extended}}
- else
- set x to {class:text style info, on styles:{extended}, off styles:{}}
- end if
- set style of usersel to x
- end tell